package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.product.ProductSearchDTO;
import com.atguigu.spzx.model.entity.product.Product;
import com.atguigu.spzx.model.vo.product.ProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2024-03-18-21:00
 */
@Mapper
public interface ProductMapper {
    List<ProductVo> list(ProductSearchDTO productSearchDTO);


    void deleteById(Long id);

    void save(Product product);

    Product getById(Long id);

    void updateById(Product product);

    void updateAuditStatus(@Param("id") Long id,@Param("auditStatus") Integer auditStatus);

    void updateStatus(@Param("id")Long id,@Param("status") Integer status);


}
